package com.zhifei.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@ApiModel(value = "添加数据源")
public class DataSourceDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	private String id;

	@NotEmpty(message = "数据源名称不能为空")
	@ApiModelProperty(value = "数据源名称")
	private String name;

	@NotEmpty(message = "数据源地址不能为空")
	@ApiModelProperty(value = "数据源地址")
	private String host;

	@NotEmpty(message = "数据源端口不能为空")
	@ApiModelProperty(value = "数据源端口")
	private String port;

	@NotEmpty(message = "用户名不能为空")
	@ApiModelProperty(value = "用户名")
	private String userName;

	@NotEmpty(message = "密码不能为空")
	@ApiModelProperty(value = "密码")
	private String password;


}